using System.Collections.Generic;

namespace NGIS.Model
{
	public struct ModelState
	{
		public string stateId;

		public string stateName;

		public EModelStateType stateType;

		public string stateDecription;

		public List<ModelEvent> modelEvents;

		public bool compareOther(ModelState pState)
		{
			if (stateId != pState.stateId)
			{
				return false;
			}
			if (stateName != pState.stateName)
			{
				return false;
			}
			if (stateType != pState.stateType)
			{
				return false;
			}
			if (stateDecription != pState.stateDecription)
			{
				return false;
			}
			if (modelEvents.Count != pState.modelEvents.Count)
			{
				return false;
			}
			for (int i = 0; i < modelEvents.Count; i++)
			{
				ModelEvent modelEvent = modelEvents[i];
				ModelEvent pEvent = pState.modelEvents[i];
				if (!modelEvent.compareOther(pEvent))
				{
					return false;
				}
			}
			return true;
		}
	}
}
